﻿using System.ComponentModel;

using Microsoft.AspNetCore.Components.Routing;

namespace BlamanticUI.Components;

/// <summary>
/// A component that renders &lt;a> element.
/// </summary>
[HtmlTag("a")]
public class Anchor : BlazorChildContentComponentBase, IHasHeader,IHasLink
{
    /// <summary>
    /// Initializes a new instance of the <see cref="Anchor"/> class.
    /// </summary>
    public Anchor()
    {
    }
    /// <summary>
    /// Gets or sets the text display as header.
    /// </summary>
    [Parameter] public bool Header { get; set; }
    /// <summary>
    /// Gets or sets the link.
    /// </summary>
    [Parameter]public string Link { get; set; }
}